package com.benjaminwan.read.free.model.action

import com.squareup.moshi.JsonClass

@JsonClass(generateAdapter = true)
data class GlobalConfig @JvmOverloads constructor(
    val loopRange: IntRange = (1..1),
    val screenX: Int = 720,
    val screenY: Int = 1440,
    val delayRange: LongRange = (1000L..2000),
    val stepRange: IntRange = (1..1)
) {
    override fun toString(): String {
        return "脚本循环:${if (loopRange.last == 0) "无限" else loopRange}, 屏幕x:${screenX}, 屏幕y:${screenY}, 默认延时:${delayRange}, 默认鼠标步进:${stepRange}"
    }
}